<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
  </head>
  <body>
  <?php if($sf_user->isAuthenticated()): ?>
	<div style="text-align:right;"><?php echo link_to('Cerrar sesi&oacute;n', 'security/logout') ?></div>
  <?php endif; ?>
  <?php $routeName = sfContext::getInstance()->getRouting()->getCurrentRouteName(); ?>
  <?php if($routeName=="trayectoria"): ?>
	<?php echo link_to('Trayectoria', '@trayectoria', array('class' => 'menuSelected')) ?>
  <?php else: ?>
    <?php echo link_to('Trayectoria', '@trayectoria') ?>
  <?php endif; ?>
  
  <?php if($routeName=="video" || strstr($routeName, "video")!=""): ?>
	<?php echo link_to('Videos', '@video', array('class' => 'menuSelected')) ?>
  <?php else: ?>
	<?php echo link_to('Videos', '@video') ?>
  <?php endif; ?>
  
  <?php if($routeName=="album" || strstr($routeName, "photo")!=""): ?>
	<?php echo link_to('Galeria', '@album', array('class' => 'menuSelected')) ?>
  <?php else: ?>
	<?php echo link_to('Galeria', '@album') ?>
  <?php endif; ?>
  <?php echo $sf_content ?>
  </body>
</html>
